package cn.itsource.pethome.basic.query;

import lombok.Data;

@Data
public class BaseQuery {
    //当前页
    private Integer currentPage;
    //当前条数
    private Integer pageSize;
    //兼容前端传的分页参数是number
   /* public void setNumber(Integer currentPage){
        this.pageNum=currentPage;
    }*/
   public Integer getBegin(){
       return (this.currentPage-1)*this.pageSize;

   }

}
